<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Model;
use Think\Model\ViewModel;


/**
 * Description of StaffinfoModel
 *
 * @author motsqueen
 */
class MajorViewModel extends ViewModel {
    
    protected $tableName = "majinfo";
    public $viewFields = array(
    	'Majinfo' => array('id','mid','name','did'),
    	'Depinfo' => array('name'=>'depname', '_on' => 'Majinfo.did=Depinfo.did'),
    ); 

    
}
